home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2301 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  6.9 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Demo/game to OS friendly part II
  5. Date: 30 Jan 1996 00:57:00 +0100
  6. Organization: dis-
  7. Message-ID: <4ejmsc$njl@serpens.rhein.de>
  8. References: <4e0jhq$f0q@sunsystem5.informatik.tu-muenchen.de> <4e114i$4o8@serpens.rhein.de> <4e371l$92b@sunsystem5.informatik.tu-muenchen.de> <4e3jld$la@serpens.rhein.de> <4e5k20$rva@sunsystem5.informatik.tu-muenchen.de> <4e64u7$a2u@serpens.rhein.de> <4e9n67$ron@sunsystem5.informatik.tu-muenchen.de> <4eb61a$4nd@serpens.rhein.de> <4ej5du$g8u@sunsystem5.informatik.tu-muenchen.de>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer) writes:
  12.  
  13. >|> Native = planar & chipmem. Doesn't mean that you have a blitter or
  14. >|> even a compatible blitter. Of course up to now this _assumption_
  15.  
  16. >well, how could I know, that the OS writers have different oppinion
  17. >about the term "chipmem".
  18.  
  19. You shouldn't try to guess. You should accept information and follow it.
  20.  
  21. The information says that native bitmaps have a certain layout and
  22. may be used by the blitter. It does not say that this implies the existence
  23. of a blitter.
  24.  
  25. The information also says that you can query this hardware in GfxBase.
  26.  
  27. >so "chipmem" means here "mem where planar bitmap can be made visible" ?
  28.  
  29. no. because planar bitmaps could exist anywhere. but these wouldn't
  30. be "native".
  31.  
  32. >so, could a driver tell a bitmap is "native", with bitmap located in
  33. >fastmem (and OS-functions doing the rest) ?
  34.  
  35. Difficult. It would have to rely on the fact that nobody could try to
  36. use the blitter on it.
  37.  
  38. >So I would say, "native" is planar & in the mem the OS-calls get the
  39. >data into screens/windows. No chipmem at all!
  40.  
  41. Read above. A native bitmap has standard format, is planar and it
  42. might be accessed by the blitter.
  43.  
  44. >then, how to check if my native bitmap is blitterable by AGA or
  45. >compatible blitter ?
  46.  
  47. You don't have to. It is.
  48.  
  49. >I guess all the people who asked for the
  50. >"native" check will assume the mem is blitterable by $dff058.
  51.  
  52. $dff058 is whatever...
  53.  
  54. Anyway. All that people that assume that a native bitmap can be
  55. handled by the blitter are correct. That's the definition.
  56.  
  57. However, to verify that you actually have a blitter (and what blitter
  58. you have) you must query GfxBase.
  59.  
  60. >shock, what about allocmem(chip) ?
  61.  
  62. shock ?
  63.  
  64. >but you say using the 3 pass version is wrong under any condition ?
  65.  
  66. No, I haven't said this either.
  67.  
  68. >Writepixellarray8 can only get as fast as my hack if 
  69.  
  70. >a) OS introduces interleaved planar viewports for AGA and previous chips.
  71.  
  72. You probably think of something completely different. But yes, the OS does
  73. support interleaved planar viewports.
  74.  
  75. >b) let's me select how much passes are done by cpu or blitter (for each
  76. >   writeparr8() call).
  77.  
  78. What for ?
  79.  
  80. >c) the updated area got same width like screen
  81.  
  82. Well, if the updated area is smaller it could probably be faster than
  83. your hack. And that's not "as fast as" your hack. So you are right.
  84.  
  85. >I admit it won't work well for 640er res, no 1280res,
  86. >only 320res on dblmonitors and then chipmem bus gets
  87. >into traffic jam. So the new modus is to be opened only
  88. >when running PAL LORES (mhm, where to I know this
  89. >specifiaction from ;) hihi ;)
  90.  
  91. The actual c2p operation has probably nothing to do with the display mode.
  92.  
  93. >so what are we wrestling about ? :D you somehow don't like direct
  94. >render, did I read this right ?
  95.  
  96. Direct rendering has some disadvantages.
  97.  
  98. >|> >you told me
  99. >|> >not to use hi-pri waittof therefore.
  100. >|> 
  101. >|> No, I didn't.
  102.  
  103. >Maybe you did think something different writing a sentence that
  104. >would be interpreted by most people (I said people, not c0d3r)
  105. >like I did. well.
  106.  
  107. Does your brain hurt when you write such funny things ?
  108.  
  109. >maybe. So what you tell, what you flame ?
  110.  
  111. Programming style of c00l c0d3rz like you. Isn't that obvious ? Even you
  112. should have noticed that.
  113.  
  114. >|> It should get you a display where you can poke the bitmap. And sorry,
  115. >|> this wouldn't work everywhere.
  116.  
  117. >It would. You don't know the routine as I didn't write RKMs for it ;)
  118.  
  119. Why do you argue facts ? There are displays that do not _have_ a bitmap
  120. for you to poke.
  121.  
  122. >It just canceles direct render mode when not available on that
  123. >platform (Your A3000, SGI, etc.). But it will return a array you got
  124. >to render to, so no failing.
  125.  
  126. So you forgot an extra update function that copies that array to the
  127. screen. Something like WritePixelArray8.
  128.  
  129. >there was a way to do the required thing. OS routines are to
  130. >do hardwarepokes.
  131.  
  132. Sure they are so that YOU do not have to.
  133.  
  134. >programmer ? you mean the caller of my routine now ? He got to render
  135. >to the given array, and then call the updateroutines, that's all.
  136.  
  137. Of course I do _not_ mean the caller of your routine. I mean _you_.
  138.  
  139. >Maybe you'd need to specify more than a bool value to tell how
  140. >realtimish your effect is to give the interface a chance for right
  141. >decision.
  142.  
  143. Or simply ignore the fine details as you cannot control them ?
  144.  
  145. >Why not. programmer can test if they're faster than his tricks
  146. >(they're maybe slower if no hardware present, see writeparr8(). )
  147.  
  148. If you do not use the OS interface you have to support every hardware.
  149. And as a matter of fact: you don't.
  150.  
  151. >Then I display the buffer, i.e video-buffer shows the line next
  152. >frame without any copying.
  153.  
  154. Of course the buffer might be displayed at the same time. You don't know.
  155.  
  156. >This is what I don't like. It's avoidable.
  157.  
  158. Sure. Like busywaiting with WaitTOF() or refetching ExecBase for each function.
  159.  
  160. >used Amiga. If I also provide a OS version, you can't
  161. >flame me for anything.
  162.  
  163. You first have to provide an OS version. And regarding your questions about
  164. OS programming I say that you have a tough time.
  165.  
  166. >|> Sure it does.
  167.  
  168. >Why always this short replys. You want to tell the "even vanilla A1200 
  169. >aren't 100% compatible" story ? well, the PAL ones are a bit slower ;)
  170.  
  171. Of course even vanilla A1200s are not compatible. Look at the recent
  172. trackloader disaster.
  173.  
  174. But no. Code can be junk even if it happens to work.
  175.  
  176. >Imagine a code that works right on OS3.0, works right just
  177. >because the done assumtions (copjmp2 not needed in syscoplist)
  178. >are true for OS3.0. If the A1200+ still got AGA, and if the
  179. >code doesn't contain any other assumtions, the only way
  180. >to make it crash is having a different OS, which uses copjmp2
  181. >for some purpose. Is it clear now ?
  182.  
  183. It has been clear from the beginning. You do invalid assumptions and as
  184. a result your code crashes.
  185.  
  186. >The irony is that if the new OS needs copjmp2, there is no chance for
  187. >my "ucopl copjmp2 slight hack without acessing $dffxxx", but a copper
  188. >takeover routine still got a chance. quite weird!
  189.  
  190. Not weird at all. You are not supposed to use hacks because hacks do fail.
  191. That's a simple truth.
  192.  
  193. >And happy gamerz are the aim, not happy philosophes.
  194.  
  195. Happy gamers buy PCs or PlayStations.
  196.  
  197. -- 
  198.                                 Michael van Elst
  199.  
  200. Internet: mlelstv@serpens.rhein.de
  201.                                 "A potential Snark may lurk in every tree."
  202.